package br.com.ffm.praticas.bean;

public class Employer extends Person{
	
	private final double minimumSalary = 480.0;	
	private double salary;
	
	public Employer(){
		this.salary = minimumSalary;
	}
	
	public Employer(double salary){
		this.salary = salary;
	}

	/**
	 * @param salary the salary to set
	 */
	public boolean setSalary(double salary) {
		if (salary > minimumSalary){
			this.salary = salary;
			return true;
		}
		return false;
	}

	/**
	 * @return the salary
	 */
	public double getSalary() {
		return salary;
	}

}
